<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the FormBuilderInput.datePicker constructor from the Class FormBuilderInput class from the flutter_form_builder library, for the Dart programming language.">
  <title>FormBuilderInput.datePicker constructor - FormBuilderInput class - flutter_form_builder library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">flutter_form_builder</a></li>
    <li><a href="flutter_form_builder/flutter_form_builder-library.html">flutter_form_builder</a></li>
    <li><a href="flutter_form_builder/FormBuilderInput-class.html">FormBuilderInput</a></li>
    <li class="self-crumb">FormBuilderInput.datePicker constructor</li>
  </ol>
  <div class="self-name">FormBuilderInput.datePicker</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">flutter_form_builder</a></li>
      <li><a href="flutter_form_builder/flutter_form_builder-library.html">flutter_form_builder</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput-class.html">FormBuilderInput</a></li>
      <li class="self-crumb">FormBuilderInput.datePicker constructor</li>
    </ol>
    
    <h5>FormBuilderInput class</h5>
    <ol>
      <li class="section-title"><a href="flutter_form_builder/FormBuilderInput-class.html#constructors">Constructors</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.checkbox.html">checkbox</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.checkboxList.html">checkboxList</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.chipsInput.html">chipsInput</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.datePicker.html">datePicker</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.dateTimePicker.html">dateTimePicker</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.dropdown.html">dropdown</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.number.html">number</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.password.html">password</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.radio.html">radio</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.rate.html">rate</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.segmentedControl.html">segmentedControl</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.signaturePad.html">signaturePad</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.slider.html">slider</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.stepper.html">stepper</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.switchInput.html">switchInput</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.textField.html">textField</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.timePicker.html">timePicker</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/FormBuilderInput.typeAhead.html">typeAhead</a></li>
    
      <li class="section-title">
        <a href="flutter_form_builder/FormBuilderInput-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="flutter_form_builder/FormBuilderInput/animationDuration.html">animationDuration</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/animationStart.html">animationStart</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/attribute.html">attribute</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/autoFlipDirection.html">autoFlipDirection</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/autovalidate.html">autovalidate</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/backgroundColor.html">backgroundColor</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/chipBuilder.html">chipBuilder</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/debounceDuration.html">debounceDuration</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/decoration.html">decoration</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/direction.html">direction</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/divisions.html">divisions</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/errorBuilder.html">errorBuilder</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/firstDate.html">firstDate</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/format.html">format</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/getImmediateSuggestions.html">getImmediateSuggestions</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/height.html">height</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/helperText.html">helperText</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/hideOnEmpty.html">hideOnEmpty</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/hideOnError.html">hideOnError</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/hideOnLoading.html">hideOnLoading</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/hideSuggestionsOnKeyboardHide.html">hideSuggestionsOnKeyboardHide</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/icon.html">icon</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/iconSize.html">iconSize</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/itemBuilder.html">itemBuilder</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/keepSuggestionsOnLoading.html">keepSuggestionsOnLoading</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/label.html">label</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/lastDate.html">lastDate</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/loadingBuilder.html">loadingBuilder</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/max.html">max</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/maxLines.html">maxLines</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/min.html">min</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/noItemsFoundBuilder.html">noItemsFoundBuilder</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/onChanged.html">onChanged</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/options.html">options</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/penColor.html">penColor</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/penStrokeWidth.html">penStrokeWidth</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/points.html">points</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/readonly.html">readonly</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/require.html">require</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/step.html">step</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/suggestionBuilder.html">suggestionBuilder</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/suggestionsBoxDecoration.html">suggestionsBoxDecoration</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/suggestionsBoxVerticalOffset.html">suggestionsBoxVerticalOffset</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/suggestionsCallback.html">suggestionsCallback</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/transitionBuilder.html">transitionBuilder</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/type.html">type</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/validator.html">validator</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/value.html">value</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/width.html">width</a></li>
      <li class="inherited"><a href="dart-core/Object/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title inherited"><a href="flutter_form_builder/FormBuilderInput-class.html#instance-methods">Methods</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="dart-core/Object/toString.html">toString</a></li>
    
      <li class="section-title inherited"><a href="flutter_form_builder/FormBuilderInput-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="dart-core/Object/operator_equals.html">operator ==</a></li>
    
    
    
      <li class="section-title"><a href="flutter_form_builder/FormBuilderInput-class.html#constants">Constants</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_CHECKBOX-constant.html">TYPE_CHECKBOX</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_CHECKBOX_LIST-constant.html">TYPE_CHECKBOX_LIST</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_CHIPS_INPUT-constant.html">TYPE_CHIPS_INPUT</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_DATE_PICKER-constant.html">TYPE_DATE_PICKER</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_DATE_TIME_PICKER-constant.html">TYPE_DATE_TIME_PICKER</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_DROPDOWN-constant.html">TYPE_DROPDOWN</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_EMAIL-constant.html">TYPE_EMAIL</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_MULTILINE_TEXT-constant.html">TYPE_MULTILINE_TEXT</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_NUMBER-constant.html">TYPE_NUMBER</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_PASSWORD-constant.html">TYPE_PASSWORD</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_PHONE-constant.html">TYPE_PHONE</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_RADIO-constant.html">TYPE_RADIO</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_RATE-constant.html">TYPE_RATE</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_SEGMENTED_CONTROL-constant.html">TYPE_SEGMENTED_CONTROL</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_SIGNATURE_PAD-constant.html">TYPE_SIGNATURE_PAD</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_SLIDER-constant.html">TYPE_SLIDER</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_STEPPER-constant.html">TYPE_STEPPER</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_SWITCH-constant.html">TYPE_SWITCH</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_TEXT-constant.html">TYPE_TEXT</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_TIME_PICKER-constant.html">TYPE_TIME_PICKER</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_TYPE_AHEAD-constant.html">TYPE_TYPE_AHEAD</a></li>
      <li><a href="flutter_form_builder/FormBuilderInput/TYPE_URL-constant.html">TYPE_URL</a></li>
    </ol>
  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1>FormBuilderInput.datePicker constructor</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">FormBuilderInput.datePicker</span>(<wbr>{<span class="parameter" id="datePicker-param-decoration"><span>@required</span> <span class="type-annotation">InputDecoration</span> <span class="parameter-name">decoration</span>, </span> <span class="parameter" id="datePicker-param-attribute"><span>@required</span> <span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">attribute</span>, </span> <span class="parameter" id="datePicker-param-readonly"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">readonly</span>: <span class="default-value">false</span>, </span> <span class="parameter" id="datePicker-param-firstDate"><span class="type-annotation"><a href="dart-core/DateTime-class.html">DateTime</a></span> <span class="parameter-name">firstDate</span>, </span> <span class="parameter" id="datePicker-param-lastDate"><span class="type-annotation"><a href="dart-core/DateTime-class.html">DateTime</a></span> <span class="parameter-name">lastDate</span>, </span> <span class="parameter" id="datePicker-param-max"><span class="type-annotation">dynamic</span> <span class="parameter-name">max</span>, </span> <span class="parameter" id="datePicker-param-format"><span class="type-annotation"><a href="dart-core/String-class.html">String</a></span> <span class="parameter-name">format</span>, </span> <span class="parameter" id="datePicker-param-value"><span class="type-annotation">dynamic</span> <span class="parameter-name">value</span>, </span> <span class="parameter" id="datePicker-param-require"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">require</span>: <span class="default-value">false</span>, </span> <span class="parameter" id="datePicker-param-validator"><span class="type-annotation">FormFieldValidator</span> <span class="parameter-name">validator</span></span> })
    </section>

    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">FormBuilderInput.datePicker({
  @required this.decoration,
  @required this.attribute,
  this.readonly = false,
  &#47;&#47; @Deprecated(&#39;Use attribute: min&#39;)
  this.firstDate,
  &#47;&#47; this.min,
  &#47;&#47; @Deprecated(&#39;Use attribute: max&#39;)
  this.lastDate,
  this.max,
  this.format,
  this.value,
  this.require = false,
  this.validator,
}) &#47;*: assert(min == null || min is DateTime),
      assert(max == null || max is DateTime),
      assert(min == null || firstDate == null),
      assert(max == null || lastDate == null)*&#47;
{
  type = FormBuilderInput.TYPE_DATE_PICKER;
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    flutter_form_builder 2.1.0
  </span>

  
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
